<template>
  <el-menu
    v-bind="$attrs"
    v-on="$listeners"
  >
    <ed-menu-item
      v-for="i in items"
      :item="i"
      :key="i.id"
    />
  </el-menu>
</template>

<script>
import EdMenuItem from './menu/EdMenuItem'
export default {
  components: {
    EdMenuItem
  },
  props: {
    // 菜单数据
    items: {
      type: Array,
      default: () => []
    }
  },
  name: 'EdMenu'
}
</script>

<style scoped>

</style>
